//
//  JFSocketDataParserHelper.h
//  JFBase
//
//  Created by Alan Wang on 2018/11/22.
//  Copyright © 2018 Alan Wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JFResultVo.h"
#import "JFSocketResultVo.h"

@interface JFSocketDataParserHelper : NSObject

//心跳 1秒一次 有更大的间隔需要自己做处理
+(JFSocketResultVo*)heartbeat:(NSString*)baseUrl;
//连接成功后会调用
+(JFSocketResultVo*)didConnect:(NSString*)baseUrl;
//收到数据会调用
+(JFSocketResultVo*)dataParser:(NSString*)baseUrl data:(NSData*)data  dataParserType:(DataParserType)type withTag:(NSInteger)tag;
//发送数据转化二进制方法
+(JFSocketResultVo*)dataParser:(NSString*)baseUrl data:(id)data  dataParserType:(DataParserType)type;
@end
